﻿
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="cn.ac.cintcm.dataconverge.researcher.domain.Comment"%>
<%@ include file="/WEB-INF/jsp/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Comment obj = (Comment)request.getAttribute("comment");
String  flag = (String)request.getAttribute("reload");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title>留言板</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">    
   <link href="<%=basePath%>index/Themes/com/style.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath%>index/Scripts/Script.js" language="javascript" type="text/javascript"></script>
    <script language="javascript">
    	function checkForm(){
    	  if(document.form0.comments.value==""){
    	  	alert("请输入回复内容");
    	  	return false;
    	  }
    	  return true;
    	}
    </script>
  </head>
<body style="text-align:center;">
 <FORM name="form0" action="comments.htm?action=saveData&cid=<%=obj==null?"0":obj.getId() %>" method="post" onSubmit="return checkForm();">
 <table cellpadding="0" cellspacing="0" width="100%" height="100%" id="Table8">
        <tr>
            <td valign="top" height="100%">
                <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" id="Table11">
                    <tr>
                        <td valign="top" >
                            <!------------------ 标题栏 ------------------>
                            <!--- 标题 ---->
                            <table class="idt_tle_mg" cellspacing="0" cellpadding="0" width="100%">
                                <tr >
                                    <td class="idt_tle_i">
                                        <img id="imgForm6" src="<%=basePath%>index/Themes/com/idt_tle_o.gif"></td>
                                    <td class="idt_tle_f1">
                                        留言回复</td>
                                </tr>
                            </table>
                            <!--- 内容 --->
                            <div id="tdForm">
                            <div align="center"><strong>请输入留言回复内容</strong></div>
						     <TABLE  border="0" cellpadding="0" cellspacing="1" width="100%" class="idt_fim_mg">
						     	<TR>
						     		<TD align="center">
						     		<textarea class="com_textarea" name="memo" rows="13" cols="60"><%if(null != obj){ if(null != obj.getMemo()){  out.println(obj.getMemo());}}	%></textarea></TD>
						     	</TR>    	
						     </TABLE>
                                <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
                                    <tr>
                                        <td align="center">
                                            <input  class="com_btn2" id="Button1" name="save" type="submit" value="保存">
                                            <input type="button" value="关闭" name="B4" class="com_btn2" id="Button2" onclick="javascript:window.close();">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                </table></form> 
  </body>
</html>
<script>
<%
if(null != flag){%> 
if(window.opener.pageForm)
			window.opener.pageForm.submit();
else opener.location.href = opener.location.href; 
window.close();
<%}%>

</script>